package com.wxapp.sale.api.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.wxapp.common.constant.base.IBaseEntity;
import com.wxapp.sale.api.enums.goods.GoodsPictureTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@Schema(description = "商品图片或者视频")
@TableName("wxapp_goods_file")
@AllArgsConstructor
@NoArgsConstructor
public class GoodsFileDO extends IBaseEntity implements Serializable {
    /**
     * 商品id
     */
    private String goodsId;
    /**
     * 文件类型
     */
    private GoodsPictureTypeEnum type;
    /**
     * 商品图片/视频 地址
     */
    private String url;
    /**
     * 是否是推荐推荐图片
     */
    private Boolean first;

}